package com.xgq.drink.mapper;

import com.xgq.drink.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xgq
 * @since 2025-02-23
 */
public interface CategoryMapper extends BaseMapper<Category> {
    @Select("SELECT * FROM product_categories ORDER BY parent_id")
    List<Category> selectAllCategories();
}
